//
//  ViewController.m
//  PrintJob
//
//  Created by blank on 2017/5/6.
//  Copyright © 2017年 CYN. All rights reserved.
//

#import "ViewController.h"
#import "Manager.h"
#import "MVCController.h"
#import "MVPController.h"
#import "MVVMController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self.view setBackgroundColor:[UIColor cyanColor]];
    // Do any additional setup after loading the view, typically from a nib.

    [[Manager instance] beginPrintTask];
    __weak typeof(self) weakSelf = self;
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [weakSelf showMVP];
    });

//    [self showMVC];



}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
//    [self showMVC];

}

- (void)showMVC {
    MVCController *controller = [[MVCController alloc] init];
    [self presentViewController:controller
                       animated:YES
                     completion:^{

                     }];
}

- (void)showMVP {
    MVPController *controller = [[MVPController alloc] init];
    [self presentViewController:controller
                       animated:YES
                     completion:^{

                     }];
}

- (void)showMVVM {
    MVVMController *controller = [[MVVMController alloc] init];
    [self presentViewController:controller
                       animated:YES
                     completion:^{

                     }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
